
 
 F u n c t i o n :   o w n s ( d o m E l e m e n t O r C S S S e l e c t o r ,   c h i l d - d o m E l e m e n t O r C S S S e l e c t o r ) 
 
 
 
 D e s c r i p t i o n :   S e t s   u p   a n   a c c e s s i b l e   p a r e n t   c h i l d   r e l a t i o n s h i p   b e t w e e n   e l e m e n t s   w i t h i n   t h e   a c c e s s i b i l i t y   t r e e . 
 
 
 
 R e t u r n s :   O r i g i n a l   O b j e c t ,   o r   $ A   o b j e c t   i f   c h a i n e d . 
 
 
 
 N o t e :   T h e   o w n s ( )   f u n c t i o n   w i l l   a u t o m a t i c a l l y   c o n f i g u r e   a   v a l i d   A R I A   p a r e n t   c h i l d   r e l a t i o n s h i p ,   e v e n   i f   t h e   c h i l d   e l e m e n t s   d o   n o t   i n c l u d e   a n   i d .   I t   w i l l   a u t o m a t i c a l l y   m a n a g e   t h e   a r i a - o w n s   a t t r i b u t e   a c c o r d i n g l y .   I f   t h e   o w n i n g   e l e m e n t   c a n n o t   s u p p o r t   t h e   a r i a - o w n s   r e l a t i o n s h i p   a c c e s s i b l y ,   a s   i s   t h e   c a s e   w i t h   " i n p u t " ,   " i m g " ,   " p r o g r e s s " ,   " i f r a m e " ,   a n d   " h r "   e l e m e n t s ,   t h e   a t t r i b u t e   w i l l   n o t   b e   s e t   t o   e n s u r e   a c c e s s i b i l i t y   w i t h   a s s i s t i v e   t e c h n o l o g i e s .   F o r   a n   e x a m p l e   o f   t h i s   f u n c t i o n a l i t y   i n   a c t i o n ,   v i e w   t h e   T r e e   m o d u l e   t e m p l a t e . 
 
 
 
 W A R N I N G :   U s e   o f   t h e   a r i a - o w n s   a t t r i b u t e   w i l l   c h a n g e   t h e   r e a d i n g   o r d e r   o f   t h e   a c c e s s i b i l i t y   t r e e   f o r   a s s i s t i v e   t e c h n o l o g y   u s e r s ,   a n d   c a n   c a u s e   c r i t i c a l   a c c e s s i b i l i t y   i s s u e s   w h e n   i m p l e m e n t e d   i m p r o p e r l y .   E x t r e m e   c a r e   m u s t   a l w a y s   b e   t a k e n   w h e n   u s i n g   t h i s   f e a t u r e . 
 
 
 
 E x a m p l e : 
 
 
 
 $ A . o w n s ( d o m E l e m e n t ,   d o m E l e m e n t C h i l d ) ; 
 
 
 
 $ A . o w n s ( " # l i s t b o x - i d " ,   " d i v . o p t i o n " ) ; 
 
 
 
 / /   O r   t h e   s a m e   u s i n g   c h a i n i n g 
 
 
 
 $ A ( d o m E l e m e n t ) . o w n s ( d o m E l e m e n t C h i l d ) ; 
 
 
 
 $ A ( " # l i s t b o x - i d " ) . o w n s ( " d i v . o p t i o n " ) ; 
 
 